const path = require('path')

module.exports = {
	alias: {
		'@': path.resolve(__dirname, './src')
	},
	hostname: 'localhost',
	port: '4000',
	open: true,
	https: false,
	ssr: false,
	base: './',
	outDir: 'dist',
	proxy: {
		'/api': {
			target: 'http://127.0.0.1:7001', // 后端服务实际地址
			changeOrigin: true,
			rewrite: path => path.replace(/^\/api/, '')
		}
	}
}